Part 1 90th percentile

1.1 ALL station 90th compare

## Warning: Removed 7 rows containing missing values or values outside the scale range
## (`geom_line()`).

## Warning: Removed 4 rows containing missing values or values outside the scale range
## (`geom_line()`).

1.2 ALL station 95th compare

## Warning: Removed 737 rows containing missing values or values outside the scale range
## (`geom_line()`).

## Warning: Removed 4 rows containing missing values or values outside the scale range
## (`geom_line()`).

Part 2 scatter plot

## [1] "Kamloops"      "Prince_George" "YVR"           "Kelowna"      
## [5] "YVR_era5"      "Abbotsford"    "Penticton"     "FortNelson"

2.1 TOP 20 scatter plot between 2 stations

Display the color point in bar

2.2 TOP 20-35 scatter plot between 2 stations

Display the color point in bar

2.3 correlation between scatter plot of YVR_era5 vs YVR temp station.

Fit a Linear Model Generate 95% Prediction Intervals as reference lines

Part 3: line segment plot

3.1 line segment for 7 temp station, 3 day HW

YVR: 1937-2024

Prince_George: 1940-2024

FortNelson: 1937-2024

Kelowna: 1899-2024

Abbotsford: 1935-2024

Kamloops: 1939-2024

Penticton: 1941-2024

line segment 3 day

## [1] "YVR"           "Kamloops"      "Prince_George" "YVR_era5"     
## [5] "Kelowna"       "Abbotsford"    "Penticton"     "FortNelson"
##        begin        end starttemp endtemp year month
## 1 1937-03-03 1937-03-05      14.4    14.4 1937     3
## 2 1937-10-27 1937-10-29      15.6    17.2 1937    10
## 3 1937-11-20 1937-11-22      11.7    12.8 1937    11
## 4 1937-12-11 1937-12-14      11.1    12.8 1937    12
## 5 1938-05-19 1938-05-24      20.6    23.3 1938     5
## 6 1939-03-21 1939-03-23      17.8    14.4 1939     3
## [1] " head df_filtered_plot"
## [1] "df_filtered_plot"

all year one plot

3.2 line segment for 7 temp station, 5 day HW

YVR: 1937-2024

Prince_George: 1940-2024

FortNelson: 1937-2024

Kelowna: 1899-2024

Abbotsford: 1935-2024

Kamloops: 1939-2024

Penticton: 1941-2024

line segment 5 day

##        begin        end starttemp endtemp year month
## 1 1937-03-03 1937-03-05      14.4    14.4 1937     3
## 2 1937-10-27 1937-10-29      15.6    17.2 1937    10
## 3 1937-11-20 1937-11-22      11.7    12.8 1937    11
## 4 1937-12-11 1937-12-14      11.1    12.8 1937    12
## 5 1938-05-19 1938-05-24      20.6    23.3 1938     5
## 6 1939-03-21 1939-03-23      17.8    14.4 1939     3
## [1] " head df_filtered_plot"
## [1] "df_filtered_plot"

all year one plot

3.3 line segment 2 yvr compare, for HW over 3 days

##        begin        end starttemp endtemp year month
## 1 1937-03-03 1937-03-05      14.4    14.4 1937     3
## 2 1937-10-27 1937-10-29      15.6    17.2 1937    10
## 3 1937-11-20 1937-11-22      11.7    12.8 1937    11
## 4 1937-12-11 1937-12-14      11.1    12.8 1937    12
## 5 1938-05-19 1938-05-24      20.6    23.3 1938     5
## 6 1939-03-21 1939-03-23      17.8    14.4 1939     3
## [1] " head df_filtered_plot"
## [1] "df_filtered_plot"

3.4 line segment for 95 percentile, 3 day HW

3.5 line segment for 95 percentile, 5 day HW

Part 4 Monthly max EHF compare

4.1 spearman correlation + time serires

MAY

##               Abbotsford FortNelson   Kelowna Prince_George       YVR
## Abbotsford     1.0000000  0.2182529 0.6248192     0.6291186 0.8354114
## FortNelson     0.2182529  1.0000000 0.2559898     0.6041235 0.2339848
## Kelowna        0.6248192  0.2559898 1.0000000     0.5930623 0.6548173
## Prince_George  0.6291186  0.6041235 0.5930623     1.0000000 0.6227868
## YVR            0.8354114  0.2339848 0.6548173     0.6227868 1.0000000

JUN

##               Abbotsford FortNelson   Kelowna Prince_George       YVR
## Abbotsford     1.0000000  0.4071526 0.6451436     0.6555837 0.8403969
## FortNelson     0.4071526  1.0000000 0.4692593     0.6123114 0.3890048
## Kelowna        0.6451436  0.4692593 1.0000000     0.7068948 0.6849651
## Prince_George  0.6555837  0.6123114 0.7068948     1.0000000 0.6719044
## YVR            0.8403969  0.3890048 0.6849651     0.6719044 1.0000000

JULY

##               Abbotsford FortNelson   Kelowna Prince_George       YVR
## Abbotsford     1.0000000  0.4148223 0.5546623     0.7133340 0.8885289
## FortNelson     0.4148223  1.0000000 0.5645034     0.5612838 0.4798623
## Kelowna        0.5546623  0.5645034 1.0000000     0.6237319 0.6892579
## Prince_George  0.7133340  0.5612838 0.6237319     1.0000000 0.7211501
## YVR            0.8885289  0.4798623 0.6892579     0.7211501 1.0000000

JUN and July

##               Abbotsford FortNelson   Kelowna Prince_George       YVR
## Abbotsford     1.0000000  0.5195232 0.6085988     0.7467652 0.8930849
## FortNelson     0.5195232  1.0000000 0.4749072     0.5605346 0.4584793
## Kelowna        0.6085988  0.4749072 1.0000000     0.6382302 0.6683001
## Prince_George  0.7467652  0.5605346 0.6382302     1.0000000 0.7861901
## YVR            0.8930849  0.4584793 0.6683001     0.7861901 1.0000000

AUG

##               Abbotsford FortNelson   Kelowna Prince_George       YVR
## Abbotsford     1.0000000  0.2763997 0.6766832     0.6444669 0.9069353
## FortNelson     0.2763997  1.0000000 0.3295738     0.4643110 0.3136782
## Kelowna        0.6766832  0.3295738 1.0000000     0.5370457 0.6413486
## Prince_George  0.6444669  0.4643110 0.5370457     1.0000000 0.6160778
## YVR            0.9069353  0.3136782 0.6413486     0.6160778 1.0000000

4 months in summer

##               Abbotsford FortNelson    Kelowna Prince_George       YVR
## Abbotsford     1.0000000 0.29089310 0.42564002     0.5128982 0.8287669
## FortNelson     0.2908931 1.00000000 0.08739496     0.4586086 0.2529021
## Kelowna        0.4256400 0.08739496 1.00000000     0.4918507 0.4483096
## Prince_George  0.5128982 0.45860856 0.49185069     1.0000000 0.6066250
## YVR            0.8287669 0.25290209 0.44830956     0.6066250 1.0000000

4.2 scatter plot of monthly EHF among stations

## $Abbotsford_vs_YVR

## 
## $Abbotsford_vs_Kelowna

## 
## $Abbotsford_vs_Prince_George

## 
## $Abbotsford_vs_FortNelson

## 
## $YVR_vs_Kelowna

## 
## $YVR_vs_Prince_George

## 
## $YVR_vs_FortNelson

## 
## $Kelowna_vs_Prince_George

## 
## $Kelowna_vs_FortNelson

## 
## $Prince_George_vs_FortNelson

Part 5 EHF

5.1 EHF line segment data for 3 day HW

5.15 all year one plot

5.2 EHF line segment data for 5 day HW

5.25 all year one plot

5.3 compare HW defined by EHF VS. HW defined by exceed 90 percentile

YVR: 1937-2024

Prince_George: 1940-2024

FortNelson: 1937-2024

Kelowna: 1899-2024

Abbotsford: 1935-2024

YVR 5 days HW compare

90 percentile

95th percentile

FortNelson 5 days HW compare

90 percentile

95th percentile

Prince_George 5 days HW compare

90 percentile

95th percentile

Kelowna 5 days HW compare

90 percentile

95th percentile

Abbotsford 5 days HW compare

90th percentile

95th percentile

5.4 95 percentile EHF

3 day line segment EHF

5 day line segment EHF